<div class="search-box">
	<form class="search_form layui-form" lay-filter="advent_search_form">
		<div class="layui-inline">
			<label class="layui-form-label">广告位</label>
			<div class="layui-input-inline">
				<select name="adsense_id" lay-filter="adsense_id">
					<option value="">全部</option>
					{volist name="getAdsense" id="list"}
						<option value="{$list.adsense_id}">{$list.adsense_name}</option>
					{/volist}
				</select>
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">标题</label>
			<div class="layui-input-inline">
				<input type="text" name="advent_name" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="pack-up"></div>
	</form>
</div>
<table class="layui-hide" id="advent_list" lay-filter="advent_list"></table>
<script>
	var advent_list_url = "{:url('advent/ajaxList')}";
	var advent_delete_url = "{:url('advent/ajaxDelete')}";
	var advent_one_url = "{:url('advent/ajaxOneData')}";
	var advent_save_url = "{:url('advent/saveData')}";
	var advent_cols = {$cols};
</script>
<script type="text/html" id="adventToolbar">
  <div class="layui-btn-container">
    <a type="button" data-id="add_advent" data-url="{:url('advent/tplForm')}" data-title="新增广告" class="layui-btn layui-btn-normal layui-btn-sm tap-nav" lay-event="addAdvent"><i class="layui-icon layui-icon-add-1"></i>新增</a>
    <button type="button" class="layui-btn layui-btn-danger layui-btn-sm" lay-event="delAdvent"><i class="layui-icon layui-icon-delete"></i>删除</button>
  </div>
</script>
<script type="text/html" id="advent_tool">
	<div class="layui-btn-group">
		<a class="layui-btn layui-btn-normal layui-btn-xs tap-nav" lay-event="edit" data-id="edit_advent_{{ d.advent_id }}" data-url="{:url('advent/tplForm')}?advent_id={{ d.advent_id}}" data-title="修改广告"><i class="layui-icon layui-icon-edit"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" data-title="删除"><i class="layui-icon layui-icon-delete"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs hide-update" lay-event="update"><i class="layui-icon layui-icon-up"></i></a>
	</div>
</script>
<script type="text/html" id="advent_pictureTpl">
	{{# if(d.advent_picture_info){
		return '<img src="'+d.advent_picture_info.save_path+'" />';
		}
}}
</script>
<script src="/static/js/advent/advent.js" type="text/javascript" charset="utf-8"></script>